/*
 * ksContainerBlock.cpp
 *
 *  Created on: Aug 3, 2011
 *      Author: wang
 */

#include "ksContainerBlock.h"
#include "ksBlockEntry.h"
#include <cstring>
#include "ksDefines.h"
#include <exception>
#include <fstream>
#include "ksAtomBlock.h"

using std::exception;
ksContainerBlock::ksContainerBlock()
{

}

ksContainerBlock::~ksContainerBlock()
{

}

void ksContainerBlock::description()
{
    std::cout << "ContainerBlock:{ ";
    std::cout << "type:" << blockType2String(_blockHeader.container.type);
    std::cout << ",id:" << _blockHeader.container.id;
    std::cout << ",compressed:" << (_blockHeader.container.compress == 1 ? "YES" : "NO");
    std::cout << ",encrypted:" << (_blockHeader.container.encrypt == 1 ? "YES" : "NO");
    std::cout << ",data length:" << _blockHeader.container.dataLength;
    std::cout << ",info length:" << _blockHeader.container.entryTableSize;

    std::cout << ", entry count:" << _blockHeader.container.entryCount;
    std::cout << ", part:" << _blockHeader.container.reserve;
    std::cout << " }" << std::endl;
}

